package starTrek.mod.oop;

public abstract class AbstractLocatable implements ILocatable, IPingable {
	private Location quadrantPosition;
	private Location sectorPosition;
	@Override
	public Quadrant getQuadrant() {
		return GameUniverse.getUniverse().getQuadrant(quadrantPosition);
	}

	@Override
	public Location getQuadrantPosition() {
		return quadrantPosition;
	}

	@Override
	public Sector getSector() {
		return getQuadrant().getSector(sectorPosition);
	}

	@Override
	public Location getSectorPosition() {
		return sectorPosition;
	}
}
